#include <cstdlib>
#include <iostream>
#include <boost/utilities.hpp>
#include "httpmanager.h"

using namespace std;
using boost::format;

int main(int argc, char* argv[])
{
	string url("http://www.qq.com");
	if( argc != 2 )
	{
		//cout << format("Usage : %s url") % argv[0] << endl;
		//return EXIT_FAILURE;
	}else
	{
		url = argv[1];
	}
	cout << response["body"];
	HTTPManager m;
	HTTPResponse response = m.urlopen( url );
	cout << response["bodyo"];

	return EXIT_SUCCESS;
}
